//
//  SelectList.h
//  Trading365
//
//  Created by yifei tong on 12-2-8.
//  Copyright (c) 2012年 dhc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "InfoList.h"

typedef void (^SelectBeginBlcok)(NSString *name,NSString *code,NSString *key);//定义块类型EditBeginBlcok: 开始编辑时的回调

@interface QuotSelectList : InfoList{
    int infotype;
    
    NSArray *list;
    NSIndexPath    * lastIndexPath;
    NSMutableDictionary *indexpathDic;
    int atRow;
    NSMutableArray *selectProductArray;
    
    SelectBeginBlcok selectBeginBlcok;
    NSString *selectValue,*selectCode;
    NSInteger selectIndex;
    NSUInteger row,section;
    NSString *customerID;
    NSString *productID;
    
    NSString *lastSelectID;//
}

//@property(nonatomic, retain) IBOutlet UISearchBar *search;
@property(nonatomic, retain) IBOutlet UITableView *table;
@property (nonatomic, retain) NSIndexPath * lastIndexPath;
@property (nonatomic, retain) NSArray *list;
@property (nonatomic, retain)NSMutableArray *selectProductArray;
@property(nonatomic,assign)SelectBeginBlcok selectBeginBlcok;
@property (nonatomic)NSUInteger row,section;
@property (nonatomic, retain) NSString *customerID,*productID;
@property (nonatomic, retain) NSString *lastSelectID;


- (void)initSelectBeginBlcok:(SelectBeginBlcok)selectBeginBlcok1;

-(void)SetInfoType:(int)type;

-(void)AddArray;
//- (IBAction)goBack:(id)sender;
- (IBAction)goBack;

@end
